﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Formular;
using Pixysoft.Weblications.Sango.Dao;

namespace Pixysoft.Weblications.Sango.Command.party
{
    partial class SangoPartyHandler
    {
        public party_missiondonateinfo party_missiondonateinfo()
        {
            string userCode = SangoManager.Authentication();

            party_missiondonateinfo response = ReflectionManager.CreatePojo<party_missiondonateinfo>();
            response.Succeed = false;

            Entities.Usr_Profile profile = UsrProfileDao.getUsrProfile(userCode);
            Entities.Usr_Activity history = UsrActivityDao.getHistory(userCode);

            response.current = (history.Partymissiondonatevalue);
            response.total = (PartyFormular.getTodayTotalDonateCashvalue(profile.Userlevel));

            response.Succeed = true;
            return response;
        }


    }
    public interface party_missiondonateinfo : ISangoResponse
    {
        long current { get;set;}
        long total { get;set;}
    }
}
